project(cmake_tets_epoll)
cmake_minimum_required(VERSION 2.8)

ADD_SUBDIRECTORY(epoll)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/epoll)

aux_source_directory(. SRC_LIST1)

add_executable(${PROJECT_NAME} ${SRC_LIST1})

TARGET_LINK_LIBRARIES(${PROJECT_NAME} epoll)

#TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PROJECT_SOURCE_DIR}/libepoll.a)

#TARGET_LINK_LIBRARIES(${PROJECT_NAME} pthread)      #链接线程库 pthread 到工程名
